{% extends "photologue/root.html" %}

{% block title %}All Photos{% endblock %}

{% block body_id %}all_photos{% endblock %}

{% block content %}

{% if tag %}
<h1>Photos tagged with '{{ tag }}'</h1>
{% else %}
<h1>All Photos</h1>
{% endif %}


{% if object_list %}
    {% for photo in object_list %}
    <div class="gallery-photo">
        <a title="{{ photo.title }}" href="{{ photo.get_absolute_url }}"><img src="{{ photo.small.url }}" alt="{{ photo.title }}"/></a>
    </div>
    {% endfor %}
    <br class="clear" />
{% else %}
<p>No photos were found.</p>
{% endif %}

{% if is_paginated %}
<p>{{ hits }} photos total.</p>
<div id="page_controls">
    <p>{% if has_previous %}<a href="{% url pl-photo-list previous %}">Previous</a> | {% endif %} page {{ page }} of {{ pages }} {% if has_next %}| <a href="{% url pl-photo-list next %}">Next</a>{% endif %}</p>
</div>
{% endif %}

{% endblock %}
